<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<input type="file" id="e" name="ee">
		<script type="text/javascript">
			
			var e=document.getElementById('e');
			e.onchange=function(a){
				var f=a.target.files[0];
				var c=new FileReader();
				c.onload=function(){
					console.log(c.result);
					var eec=new Blob([c.result]);
					var r = new FileReader();
					r.readAsText(eec, 'gbk');
					r.onload = function (){
						console.log(r.result);
					}
					
				}
				c.readAsArrayBuffer(f);
			}
		</script>
	</body>
</html>
